// #include "threadPool_V1.hpp"
// #include "threadPool_V2.hpp"
// #include "threadPool_V3.hpp"
#include "threadPool_V4.hpp"
#include "Task.hpp"

#include <memory>
#include <iostream>

int main()
{
    int x, y;
    char op;
    while (true)
    {
        std::cout << "please Enter x:>";
        std::cin >> x;
        std::cout << "please Enter y:>";
        std::cin >> y;
        std::cout << "please Enter op(+-*/%):>";
        std::cin >> op;
        Task t(x, y, op);
        ThreadPool<Task>::getinstance()->pushTask(t);
        sleep(1);
    }
    return 0;
}